package 作业.登录.book;
//案例:自定义图书类
//设定属性包括:书名bookName,作者author，价格price;
//方法包括:相应属性的get/set方法，图书信息介绍等。
public class bookeser1 {
    private String bookName;
    private String author;
    private double price;

    public String getBookName(){
        return bookName;
    }
    public void setBookName(String book){
        bookName = book;
    }
    public String getAuthor(){
        return author;
    }
    public void setAuthor(String zuozhe){
        author = zuozhe;
    }
    public double Setpric(){
        return price;
    }
    public void getPrice(double jiage){
        price = jiage;
    }


    //获取用户信息
    public String info(){
        return "书名:" + bookName + "\n作者:" + author + "\n价格:" + price;
    }

}
